home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / cpphtp2 / code.jar / code / ch11 / fig11_27.txt < prev    next >
Text File  |  1998-02-27  |  411b  |  14 lines

  1. 1   // Fig. 11.27: fig11_27.cpp 
  2. 2   // Using the ios::uppercase flag
  3. 3   #include <iostream.h>
  4. 4   #include <iomanip.h>
  5. 5   
  6. 6   int main()
  7. 7   {
  8. 8      cout << setiosflags( ios::uppercase )
  9. 9           << "Printing uppercase letters in scientific\n"
  10. 10          << "notation exponents and hexadecimal values:\n"
  11. 11          << 4.345e10 << '\n' << hex << 123456789 << endl;
  12. 12     return 0;
  13. 13  }
  14.